<!--{template admin/header}-->
<script language="JavaScript"> 
    function myrefresh(){ 
        window.location.reload(); 
    } 
    setTimeout('myrefresh()',15000);
</script> 
<body id="homepage">
    <div id="breadcrumb">
        <ul>
            <li><img src="static/img/icons/icon_breadcrumb.png"
                     alt="Location" /></li>
            <li><strong>位置:</strong></li>
            <li><a href="home.html">主页</a> - 聊天室</li>
        </ul>
    </div>
    <div id="rightside">
        <div class="contentcontainer">
            <div class="headings altheading">
                <h2>聊天记录列表</h2>
            </div>
            <div class="contentbox">
	            <div class="extrabottom">
	                    <form method="get" action="admin.php">
	                    <input type="hidden" value="getChatList" name="do">
	                        起始位置:<input type="text" name="start" value="$_GET[start]"class="inputbox smallbox" /> 
	                        请求数量:<input type="text"name="perpage" value="$_GET[perpage]" class="inputbox smallbox" />
	                        用户Uid:<input type="text" name="uid" value="$_GET[uid]"class="inputbox smallbox" />
	                        最小id :<input type="text" name="id" value="$_GET[id]"class="inputbox smallbox" />
	                        <select name="perpage">
	                            <option value="20"$perpages[20]>每页显示20个</option>
	                            <option value="50"$perpages[50]>每页显示50个</option>
	                            <option value="100"$perpages[100]>每页显示100个</option>
	                        </select> 
	                        <input type="submit" value="查找聊天室记录" class="btn" /> 
	                        <input type="hidden" name="ac" value="chat" />
	                        <a href="admin.php?ac=chat" class="btn">清空条件</a>
	                    </form>
	                </div>
                <table width="100%">
                    <thead>
                        <tr>
                            <th>发言人</th>
                            <th>内容</th>
                            <th>设备</th>
                            <th>日记时间</th>
                            <th>主页-封禁</th>
                        </tr>
                    </thead>
                    <tbody>
                        <!--{eval $i=0;}-->
                        <!--{loop $list $value}-->
                        <!--{eval $i++;}-->
                        <tr <!--{eval echo showRowHilite($i); }--> >
                            <td><a href="admin.php?ac=diary&uid={$value[uid]}"
                               title="{$value[nickname]}" target="_blank">{$value[uid]}/{$value[nickname]}</a></td>
                            <td>{$value['content']}</td>
                            <td>
                                {$value['device']}
                            </td>
                            <td>
                                <!--{date('Y-m-d H:i',$value[time])}-->
                            </td>
                            <td><a href="admin.php?ac=user&uid={$value[uid]}" target="_blank">
                                    <img src="static/img/icons/gif_people.gif"
                                         width="24" height="24" /></a>&nbsp;&nbsp;&nbsp;&nbsp;
                                <a href="admin.php?ac=user&uid={$value[uid]}" target="_blank"><img
                                        src="static/img/icons/gif_delete.gif" width="24" height="24"/></a>
                            </td>
                        </tr>
                        <!--{/loop}-->
                    </tbody>
                </table>
                <div class="extrabottom">
                    <ul>
                        <li><img src="static/img/icons/gif_people.gif" />作者信息</li>
                        <li><img src="static/img/icons/gif_delete.gif" /> 封禁用户</li>
                    </ul>
                    <div class="bulkactions">
                        <ul class="pagination">
                            <!--{if $prevpurl!=''}-->
                            <li class="text"><a href="{$firstpurl}" title="">第一页</a></li>
                            <li class="text"><a href="{$prevpurl}" title="">上一页</a></li>
                            <!--{/if}-->
                            <li class="text"><a href="{$nextpurl}" title="">下一页</a></li>
                        </ul>
                        <div style="clear: both;"></div>
                    </div>
                </div>
                <div style="clear: both;"></div>
            </div>
        </div>


    </div>
    <!--{template admin/leftside}-->
    <!--{template admin/footer}-->